package com.yzjs.wx.response;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(
        name = "xml",
        strict = false
)
public class WxPaySyncResponse {
    @Element(
            name = "return_code"
    )
    private String returnCode;
    @Element(
            name = "return_msg",
            required = false
    )
    private String returnMsg;
    @Element(
            name = "appid",
            required = false
    )
    private String appid;
    @Element(
            name = "mch_id",
            required = false
    )
    private String mchId;
    @Element(
            name = "device_info",
            required = false
    )
    private String deviceInfo;
    @Element(
            name = "nonce_str",
            required = false
    )
    private String nonceStr;
    @Element(
            name = "sign",
            required = false
    )
    private String sign;
    @Element(
            name = "result_code",
            required = false
    )
    private String resultCode;
    @Element(
            name = "err_code",
            required = false
    )
    private String errCode;
    @Element(
            name = "err_code_des",
            required = false
    )
    private String errCodeDes;
    @Element(
            name = "trade_type",
            required = false
    )
    private String tradeType;
    @Element(
            name = "prepay_id",
            required = false
    )
    private String prepayId;
    @Element(
            name = "code_url",
            required = false
    )
    private String codeUrl;
    @Element(
            name = "mweb_url",
            required = false
    )
    private String mwebUrl;

    public WxPaySyncResponse() {
    }

    public String getReturnCode() {
        return this.returnCode;
    }

    public String getReturnMsg() {
        return this.returnMsg;
    }

    public String getAppid() {
        return this.appid;
    }

    public String getMchId() {
        return this.mchId;
    }

    public String getDeviceInfo() {
        return this.deviceInfo;
    }

    public String getNonceStr() {
        return this.nonceStr;
    }

    public String getSign() {
        return this.sign;
    }

    public String getResultCode() {
        return this.resultCode;
    }

    public String getErrCode() {
        return this.errCode;
    }

    public String getErrCodeDes() {
        return this.errCodeDes;
    }

    public String getTradeType() {
        return this.tradeType;
    }

    public String getPrepayId() {
        return this.prepayId;
    }

    public String getCodeUrl() {
        return this.codeUrl;
    }

    public String getMwebUrl() {
        return this.mwebUrl;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public void setDeviceInfo(String deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public void setErrCodeDes(String errCodeDes) {
        this.errCodeDes = errCodeDes;
    }

    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    public void setCodeUrl(String codeUrl) {
        this.codeUrl = codeUrl;
    }

    public void setMwebUrl(String mwebUrl) {
        this.mwebUrl = mwebUrl;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof WxPaySyncResponse)) {
            return false;
        } else {
            WxPaySyncResponse other = (WxPaySyncResponse)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$returnCode = this.getReturnCode();
                Object other$returnCode = other.getReturnCode();
                if (this$returnCode == null) {
                    if (other$returnCode != null) {
                        return false;
                    }
                } else if (!this$returnCode.equals(other$returnCode)) {
                    return false;
                }

                Object this$returnMsg = this.getReturnMsg();
                Object other$returnMsg = other.getReturnMsg();
                if (this$returnMsg == null) {
                    if (other$returnMsg != null) {
                        return false;
                    }
                } else if (!this$returnMsg.equals(other$returnMsg)) {
                    return false;
                }

                Object this$appid = this.getAppid();
                Object other$appid = other.getAppid();
                if (this$appid == null) {
                    if (other$appid != null) {
                        return false;
                    }
                } else if (!this$appid.equals(other$appid)) {
                    return false;
                }

                label158: {
                    Object this$mchId = this.getMchId();
                    Object other$mchId = other.getMchId();
                    if (this$mchId == null) {
                        if (other$mchId == null) {
                            break label158;
                        }
                    } else if (this$mchId.equals(other$mchId)) {
                        break label158;
                    }

                    return false;
                }

                label151: {
                    Object this$deviceInfo = this.getDeviceInfo();
                    Object other$deviceInfo = other.getDeviceInfo();
                    if (this$deviceInfo == null) {
                        if (other$deviceInfo == null) {
                            break label151;
                        }
                    } else if (this$deviceInfo.equals(other$deviceInfo)) {
                        break label151;
                    }

                    return false;
                }

                Object this$nonceStr = this.getNonceStr();
                Object other$nonceStr = other.getNonceStr();
                if (this$nonceStr == null) {
                    if (other$nonceStr != null) {
                        return false;
                    }
                } else if (!this$nonceStr.equals(other$nonceStr)) {
                    return false;
                }

                label137: {
                    Object this$sign = this.getSign();
                    Object other$sign = other.getSign();
                    if (this$sign == null) {
                        if (other$sign == null) {
                            break label137;
                        }
                    } else if (this$sign.equals(other$sign)) {
                        break label137;
                    }

                    return false;
                }

                label130: {
                    Object this$resultCode = this.getResultCode();
                    Object other$resultCode = other.getResultCode();
                    if (this$resultCode == null) {
                        if (other$resultCode == null) {
                            break label130;
                        }
                    } else if (this$resultCode.equals(other$resultCode)) {
                        break label130;
                    }

                    return false;
                }

                Object this$errCode = this.getErrCode();
                Object other$errCode = other.getErrCode();
                if (this$errCode == null) {
                    if (other$errCode != null) {
                        return false;
                    }
                } else if (!this$errCode.equals(other$errCode)) {
                    return false;
                }

                Object this$errCodeDes = this.getErrCodeDes();
                Object other$errCodeDes = other.getErrCodeDes();
                if (this$errCodeDes == null) {
                    if (other$errCodeDes != null) {
                        return false;
                    }
                } else if (!this$errCodeDes.equals(other$errCodeDes)) {
                    return false;
                }

                label109: {
                    Object this$tradeType = this.getTradeType();
                    Object other$tradeType = other.getTradeType();
                    if (this$tradeType == null) {
                        if (other$tradeType == null) {
                            break label109;
                        }
                    } else if (this$tradeType.equals(other$tradeType)) {
                        break label109;
                    }

                    return false;
                }

                label102: {
                    Object this$prepayId = this.getPrepayId();
                    Object other$prepayId = other.getPrepayId();
                    if (this$prepayId == null) {
                        if (other$prepayId == null) {
                            break label102;
                        }
                    } else if (this$prepayId.equals(other$prepayId)) {
                        break label102;
                    }

                    return false;
                }

                Object this$codeUrl = this.getCodeUrl();
                Object other$codeUrl = other.getCodeUrl();
                if (this$codeUrl == null) {
                    if (other$codeUrl != null) {
                        return false;
                    }
                } else if (!this$codeUrl.equals(other$codeUrl)) {
                    return false;
                }

                Object this$mwebUrl = this.getMwebUrl();
                Object other$mwebUrl = other.getMwebUrl();
                if (this$mwebUrl == null) {
                    if (other$mwebUrl != null) {
                        return false;
                    }
                } else if (!this$mwebUrl.equals(other$mwebUrl)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof WxPaySyncResponse;
    }


    public String toString() {
        return "WxPaySyncResponse(returnCode=" + this.getReturnCode() + ", returnMsg=" + this.getReturnMsg() + ", appid=" + this.getAppid() + ", mchId=" + this.getMchId() + ", deviceInfo=" + this.getDeviceInfo() + ", nonceStr=" + this.getNonceStr() + ", sign=" + this.getSign() + ", resultCode=" + this.getResultCode() + ", errCode=" + this.getErrCode() + ", errCodeDes=" + this.getErrCodeDes() + ", tradeType=" + this.getTradeType() + ", prepayId=" + this.getPrepayId() + ", codeUrl=" + this.getCodeUrl() + ", mwebUrl=" + this.getMwebUrl() + ")";
    }
}

